import { Component, OnInit } from '@angular/core';
import { Category } from '../category';
import { Categories } from '../mock-category';

@Component({
  selector: 'app-category',
  templateUrl: './category.component.html',
  styleUrls: ['./category.component.css']
})
export class CategoryComponent implements OnInit {
    datas = Categories;
    selectedData?:Category;
    constructor() { }

    ngOnInit(): void {

    }

    onSelect(category:Category):void{
        this.selectedData = category;
    }
}
